package me.zhengjie.minbearwcs.dao.rework.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.minbearwcs.dao.rework.inf.ReworkOrderDetailHistoryDao;
import me.zhengjie.minbearwcs.entity.Mapper.rework.ReworkOrderDetailHistoryMapper;
import me.zhengjie.minbearwcs.entity.PO.wcs.rework.history.ReworkOrderDetailHistory;
import org.springframework.stereotype.Repository;

@Repository
@RequiredArgsConstructor
public class ReworkOrderDetailHistoryDaoImpl implements ReworkOrderDetailHistoryDao {


    private final ReworkOrderDetailHistoryMapper  mapper;

    @Override
    public boolean insert(ReworkOrderDetailHistory reworkOrderDetailHistory) {
        return mapper.insert(reworkOrderDetailHistory) == 1;
    }
}
